package com.edou.system.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.edou.system.dto.SysEmailCondition;
import com.edou.system.entity.SysEmail;

@Repository("sysEmailDaoImpl")
public interface ISysEmailDao {

	/**
	 * 保存Email信息
	 * 
	 * @param email
	 *            邮件实体
	 */
	public void add(SysEmail email);
	
	public List<SysEmail> listTenNoSendMail();
	
	public void updateEmailState(@Param("id")String id,@Param("state")Integer state);

	
	
	/**
	 * 查询区间数据
	 * @param bounds
	 * @param condition
	 * @return
	 */
	
	List<SysEmail> listSysEmailByPage(RowBounds bounds,@Param("condition") SysEmailCondition condition);
	/**
	 * 查询总数
	 * @param condition
	 * @return
	 */
	int listSysEmailByPageCount(@Param("condition") SysEmailCondition condition);
	
	/**
	 * 根据ID集合批量删除
	 * @param ids ID集合
	 */
	void delByIds(String[] ids);
}